package com.yuyu.shop.infrastructure.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuyu.shop.infrastructure.persistence.po.OrderPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author
 * @description: orderMapper
 * @date: 2022/8/3 17:14
 */
@Mapper
public interface OrderMapper extends BaseMapper<OrderPO> {

    Page<OrderPO> getOrderByUserId(@Param("page") Page page,@Param("userId") Long userId, @Param("type") Integer type);

}
